/**
 * 
 */
package hwchai.oom.dataaccess;

import hwchai.oom.entity.account.Account;
import hwchai.oom.entity.customer.Customer;
import hwchai.oom.entity.user.User;
import hwchai.oom.logic.operation.Operator;

import java.util.LinkedList;

/**
 * @author Administrator
 *
 */
public interface DataService {

	Account getAccount(Customer customer, Long aid);
	
	Account getAccount(Long cid, Long aid);
	
	boolean putAccount(Customer customer, Account account);
	
	boolean putAccount(Long cid, Account account);
	
	User getUser(Long uid);
	
	boolean putUser(User user);
	
	Customer getCustomer(Long cid);
	
	boolean putCustomer(Customer customer);
	
	boolean putOperation(Operator operation);
	
	LinkedList<Operator> getUserOperations(Long uid, Long start, Long end);
	
	LinkedList<Operator> getCustomerOperations(Long cid, Long Start, Long end);
	
}
